[Special:MovePage] fix Title method usage. Need potential subpages included as well.
authorKrinkle <krinkle@users.mediawiki.org>
Thu, 2 Feb 2012 20:46:01 +0000 (20:46 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Thu, 2 Feb 2012 20:46:01 +0000 (20:46 +0000)
* Follows-up r110209 CR

includes/specials/SpecialMovepage.php

index ad45ed8..d1b93e4 100644 (file)
@@ -267,7 +267,7 @@ class MovePageForm extends UnlistedSpecialPage {
                                                array( 'selected' => $newTitle->getNamespace() ),
                                                array( 'name' => 'wpNewTitleNs', 'id' => 'wpNewTitleNs' )
                                        ) .
-                                       Xml::input( 'wpNewTitleMain', 60, $wgContLang->recodeForEdit( $newTitle->getBaseText() ), array(
+                                       Xml::input( 'wpNewTitleMain', 60, $wgContLang->recodeForEdit( $newTitle->getText() ), array(
                                                'type' => 'text',
                                                'id' => 'wpNewTitleMain',
                                                'maxlength' => 255,